aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/train-ico/[type]/[[line]]
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/train-ico/[type]/[[line]]')
-rw-r--r--src/routes/train-ico/[type]/[[line]]/+page.svelte7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/routes/train-ico/[type]/[[line]]/+page.svelte b/src/routes/train-ico/[type]/[[line]]/+page.svelte
index 59ec23b..0b7a3ac 100644
--- a/src/routes/train-ico/[type]/[[line]]/+page.svelte
+++ b/src/routes/train-ico/[type]/[[line]]/+page.svelte
@@ -1,6 +1,7 @@
<script lang="ts">
import type { PageProps } from './$types';
import LineGlyph from '$lib/assets/LineGlyph.svelte';
+ import { page } from '$app/state';
let { data }: PageProps = $props();
let { params } = $derived(data);
@@ -8,7 +9,7 @@
<LineGlyph
kind="{params.type}{params.line}"
- type={params.type}
- line={params.line}
- nightIsFilled={false}
+ type={!page.url.searchParams.has('only-joined') ? params.type : undefined}
+ line={!page.url.searchParams.has('only-joined') ? params.line : undefined}
+ negative={false}
/>